#ifndef CRC16_H
#define CRC16_H


class crc16
{
public:
    crc16();
    unsigned short CRC_Cal(const unsigned char * buf,unsigned int len);
    bool Check_CRC(const unsigned char * buf, unsigned int len);
private:
    unsigned short culCalcCRC(unsigned char crcData, unsigned short  crcReg);
};

#endif // CRC16_H
